Jx.declare('Jx.ui.Shape', {

	$extend: 'Jx.data.tree.Node',

	$helpers: {

		'Unit': 'Jx.Unit'

	},

	$accessors: {

		'x': 0,

		'y': 0,

		'width': 0,

		'height': 0

	},

	$actions: [

		'render'

	],

	driver: undefined,

	rendered: false,

	constructor: function(driver, config){

		var attributes = {};

		if (Jx.isObject(config)){

			Jx.assign(attributes, config);

		}

		this.$super();

	},

	onConfigureX: function(value){

		this.set('x', Jx.lib.Unit.create('dimension', [value]));

	}

});
